# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=libpipeline
pkgver=1.5.8
pkgrel=0
pkgdesc="C pipeline manipulation library"
url="https://libpipeline.gitlab.io/libpipeline/"
arch="all"
license="GPL-3.0-or-later"
checkdepends="check-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.savannah.nongnu.org/releases/libpipeline/libpipeline-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
0ae94df4bd508f0e664fa5430687d64904c60d69d9565c18cacb70251f8653cb7c571325d1406c859fdd149048adce8c4b3bf028573064496d7da3436e27b9b0  libpipeline-1.5.8.tar.gz
"
